package com.jjx.trainingapi.service.impl;

import com.jjx.trainingapi.util.LoginManager;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jjx.trainingapi.entity.po.UserRecordError;
import com.jjx.trainingapi.mapper.UserRecordErrorMapper;
import com.jjx.trainingapi.service.UserRecordErrorService;

/**
 * @author LoveHuahua
 * @date 2022年05月24日 1:10
 * @description believe in yourself
 */
@Service
public class UserRecordErrorServiceImpl extends ServiceImpl<UserRecordErrorMapper, UserRecordError> implements UserRecordErrorService {

    /**
     * 根据用户id查询错误数量
     *
     * @param userId
     * @return
     */
    @Override
    public Integer queryErrorCount(int userId) {
        return baseMapper.queryErrorCount(userId);
    }




}

